import javax.swing.*;

public class ATMMoreTest {
    public static void main(String[] args) {
        ATMMore a = new ATMMore();
        a.login();
        while (true){
            String choose = JOptionPane.showInputDialog(null,"选择操作项目\n1-存钱\n2-信息查询\n3-取钱\n" +
                    "4-转账\n5-修改密码\n6-退出");
            switch (choose){
                case "1":
                    a.save();
                    break;
                case "2":
                    a.getInform();
                    break;
                case "3":
                    a.getMoney();
                    break;
                case "4":
                    a.transMoney();
                    break;
//                case "5":
//                    a.pwdChange();
//                    break;
                case "6":
                    JOptionPane.showMessageDialog(null,"谢谢使用");
                    System.exit(0);
                default:
                    JOptionPane.showMessageDialog(null,"选择有误，请输入1-6");
            }
        }
    }
}
